package com.thenie.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thenie.chat.pojo.Friend;
import com.thenie.chat.pojo.User;
import com.thenie.chat.vo.UserInfoVo;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author thenie
 * @since 2022-05-22
 */
@Repository
public interface FriendMapper extends BaseMapper<Friend> {
    /**
     * 查找我的好友列表
     * @param id
     * @return
     */
    public List<UserInfoVo> findMyFriendList(long id);

    /**
     * 删除我的好友
     * @param fromId
     * @param toId
     * @return
     */
    public int deleteMyFriend(long fromId, long toId);
}
